package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.ReturnRequestBean;

import java.util.List;

public class ReturnRequestAdapter extends BaseQuickAdapter<ReturnRequestBean.BACKMLOTDTO, BaseViewHolder> {


    public ReturnRequestAdapter(@Nullable List<ReturnRequestBean.BACKMLOTDTO> data) {
        super(R.layout.adapter_return_request,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ReturnRequestBean.BACKMLOTDTO item) {

        helper.setText(R.id.position,String.valueOf(helper.getAdapterPosition()+1));
        helper.setText(R.id.mlot_qty,String.valueOf(item.getMainQty()));
        helper.setText(R.id.mlot_id,item.getmLotId());
        helper.setText(R.id.mlot_name,item.getMaterialDesc());

    }
}
